package homework;

public class Demo001 {
    public static void main(String[] args) {
        LinkedList<String> list = new LinkedList<>();
        list.add("Tom");
        list.add("Jerry");
        list.add("Andy");
        list.add("Nemo");
        list.add("Sun");
        list.add("西欧昂达");
        list.add("热");
        list.add("胜多负少");
        list.add("速度");

        System.out.println(list.get(0));
        System.out.println(list.get(2));
        System.out.println(list.get(7));

        list.add(4, "光头强");
        System.out.println(list.get(4));
        System.out.println(list.get(5));
        list.add(0, "范传奇");
        System.out.println(list.get(0));
        System.out.println(list.get(1));
        System.out.println(list.getSize());
        System.out.println(list.get(11));
        System.out.println(list.toString());

       
    }
}
